<template>
  <div>
    登录成功,这里是主页
    <el-button type="primary" @click="resqaaa">请求接口</el-button>
  </div>
</template>

<script>
export default {
  name: "Login",
  data() {
    return {}
  },
  methods: {
    resqaaa() {
      const response = this.$http.post('http://localhost:30001/userCenter/api/system/getSystem')
          .then(res => {
                alert(res.data)
                this.$message.info("请求成功" + res)
              }
          ).catch(() => this.$message.error("接口请求失败~"))
      if (response.status !== 200) return;
    },
    //重置登录表单
    resetLoginForm() {
      // console.log(this)
      // ui框架自带的form表单方法
      this.$refs.loginFormRef.resetFields();
    }
  }
}
</script>
